/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ctr;

import gui.MainGUI;

/**
 * Class to manipule the operations in GUI
 * @author Administrador
 */
public class Control {
    private static Control instance = null;
    private Setting preferences;

    private Control() {
    }
    
    public static Control getInstance() {
        if ( instance == null ) {
            instance = new Control();
        }
        return instance;
    }
    
    public String setFileToConvert(String file) {
        return null;
    }
    
    public String setDirToConvert(String dir) {
        return null;
    }
    
    public void printMessage(String message) {
        MainGUI gui = MainGUI.getInstance();
        gui.addTextTextBox(message);
    }
    
    public void convert(String path) {
        printMessage("COnvert: " + path);
        printMessage("\tSettings: " + preferences.toString());
    }

    public Setting getPreferences() {
        return preferences;
    }

    public void setPreferences(Setting preferences) {
        this.preferences = preferences;
    }
   
    
}

